<head>
<meta http-equiv='content-type' content='text/html; charset=utf8' />
<title>jsgoo tests</title><link rel='stylesheet' href='main.css' type='text/css' />
<script type='text/javascript' src='jsgoo.js'></script>
<script type='text/javascript'>

function test() { _.$into('main', _test.go([
        {   n: 'format', 
            f: function(){ return _date.format(new Date(2009,0,20), 'd.m.Y') }, 
            r: "20.01.2009" },

		{   n: 'format', 
            f: function(){ return _date.format(new Date(2009,0,20), 'Y-m-d') }, 
            r: "2009-01-20" },

		{   n: 'format', 
            f: function(){ return _date.format(new Date(2009,0,20), 'm/d/y') }, 
            r: "01/20/109" },
			
		{   n: '_padTo2', 
            f: function(){ return _date._padTo2(2) }, 
            r: "02" },

		{   n: '_padTo2', 
            f: function(){ return _date._padTo2(12) }, 
            r: "12" },

		{   n: '_padTo2', 
            f: function(){ return _date._padTo2(123) }, 
            r: "123" },
			
        ]));
} 


</script>
<body>
<div><a href="index.html">index</a> <a href="#" onclick="test(); return false;">test</a></div>
<p><b>TODO:</b> more unit tests as this API evolves.</p>
<div id="main"></div>
</body>
</html>